package com.sea.app.module.process.controller.result;

import org.activiti.engine.task.Task;

import java.util.Date;

/**
 * Created by 31417 on 2017/5/8.
 */
public class TaskResult {
    private String id; 		// 任务编号
    private String name; 	// 任务名称
    private String taskDefinitionKey; 	// 任务定义Key（任务环节标识）

    private String processInstanceId; 	// 流程实例ID
    private String processDefinitionId; 	// 流程定义ID
    private Date dueDat;
    private Date createTime;
    private String tenantId;
    private String category;
    private String parentTaskId;
    private String description;
    public TaskResult(Task task){
        this.id = task.getId();
        this.name = task.getName();
        this.processDefinitionId = task.getProcessDefinitionId();
        this.taskDefinitionKey = task.getTaskDefinitionKey();
        this.processInstanceId =task.getProcessInstanceId();
        this.dueDat = task.getDueDate();
        this.createTime = task.getCreateTime();
        this.tenantId = task.getTenantId();
        this.category = task.getCategory();
        this.parentTaskId = task.getParentTaskId();
        this.description = task.getDescription();
    }

    public String getId() {
        return id;
    }

    public String getName() {
        return name;
    }

    public String getTaskDefinitionKey() {
        return taskDefinitionKey;
    }

    public String getProcessInstanceId() {
        return processInstanceId;
    }

    public String getProcessDefinitionId() {
        return processDefinitionId;
    }

    public Date getDueDat() {
        return dueDat;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public String getTenantId() {
        return tenantId;
    }

    public String getCategory() {
        return category;
    }

    public String getParentTaskId() {
        return parentTaskId;
    }

    public String getDescription() {
        return description;
    }
}
